﻿/* Syntax to reproduce results from Study 1 of "The Inherence Heuristic as a Source of Essentialist Thought"


/* Numbers of participants excluded for failing catch items or non-US IP addresses

FREQUENCIES VARIABLES=Exclude
  /ORDER=ANALYSIS.


/* Exclude participants for (1) failing catch items and (2) non-US IP addresses

USE ALL.
COMPUTE filter_$=(Exclude = 0).
VARIABLE LABELS filter_$ 'Exclude = 0 (FILTER)'.
VALUE LABELS filter_$ 0 'Not Selected' 1 'Selected'.
FORMATS filter_$ (f1.0).
FILTER BY filter_$.
EXECUTE.



/* Number of non-excluded participants in each subsample

FREQUENCIES VARIABLES=sample
  /ORDER=ANALYSIS.


/* Score Raven's Progressive Matrices 

DO IF  (sample = 3).

   RECODE RPM01 (7=1) (ELSE=0) INTO RPM01score.
   VARIABLE LABELS  RPM01score "Raven's Progressive Matrices C9 - Score".

   RECODE RPM02 RPM07 (1=1) (ELSE=0) INTO RPM02score RPM07score.
   VARIABLE LABELS  RPM02score "Raven's Progressive Matrices D9 - Score" RPM07score "Raven's Progressive Matrices C11 - Score".

   RECODE RPM03 (3=1) (ELSE=0) INTO RPM03score.
   VARIABLE LABELS  RPM03score "Raven's Progressive Matrices E9 - Score".

   RECODE RPM04 RPM11 (6=1) (ELSE=0) INTO RPM04score RPM11score.
   VARIABLE LABELS  RPM04score "Raven's Progressive Matrices C10 - Score" RPM11score "Raven's Progressive Matrices D12 - Score".

   RECODE RPM05 RPM06 RPM10 (2=1) (ELSE=0) INTO RPM05score RPM06score RPM10score.
   VARIABLE LABELS  RPM05score "Raven's Progressive Matrices D10 - Score" RPM06score "Raven's Progressive Matrices E10 - Score" RPM10score "Raven's Progressive Matrices C12 - Score".

   RECODE RPM08 RPM12 (5=1) (ELSE=0) INTO RPM08score RPM12score.
   VARIABLE LABELS  RPM08score "Raven's Progressive Matrices D11 - Score" RPM12score "Raven's Progressive Matrices E12 - Score".

   RECODE RPM09 (4=1) (ELSE=0) INTO RPM09score.
   VARIABLE LABELS  RPM09score "Raven's Progressive Matrices E4 - Score".

END IF.
EXECUTE.

/* Cronbach's alpha - Essentialism - Reported in Table 5

RELIABILITY
  /VARIABLES=HREInf_Girls HREInf_Catho HREInf_Poor HREInf_Athle HREInf_Shy HREInf_Messy 
    HREInf_Schiz HREInf_Asian HREInf_Veget HREInf_Optim HREInf_Smart HREInf_Music HREUnd_Girls 
    HREUnd_Catho HREUnd_Poor HREUnd_Athle HREUnd_Shy HREUnd_Messy HREUnd_Schiz HREUnd_Asian 
    HREUnd_Veget HREUnd_Optim HREUnd_Smart HREUnd_Music HREUni_Girls HREUni_Catho HREUni_Poor 
    HREUni_Athle HREUni_Shy HREUni_Messy HREUni_Schiz HREUni_Asian HREUni_Veget HREUni_Optim 
    HREUni_Smart HREUni_Music HREInn_Girls HREInn_Catho HREInn_Poor HREInn_Athle HREInn_Shy 
    HREInn_Messy HREInn_Schiz HREInn_Asian HREInn_Veget HREInn_Optim HREInn_Smart HREInn_Music 
    HRESta_Girls HRESta_Catho HRESta_Poor HRESta_Athle HRESta_Shy HRESta_Messy HRESta_Schiz 
    HRESta_Asian HRESta_Veget HRESta_Optim HRESta_Smart HRESta_Music
  /SCALE('Haslam et al Essentialism Scale') ALL
  /MODEL=ALPHA.


/* Cronbach's alpha - Inherence Heuristic - Reported in Table 5

RELIABILITY
  /VARIABLES=IH01Stop IH02Beds IH03Diamonds IH04Dollar IH05Chipmunk IH06OJ IH07Pink IH08White 
    IH09Black IH10Mint IH11Seven IH12Weekend IH13Limbs IH14Eyes IH15Sounds
  /SCALE('Inherence Heuristic Scale') ALL
  /MODEL=ALPHA.


/* Cronbach's alpha - Need for Cognition - Reported in Table 5

RELIABILITY
  /VARIABLES=COG01Compl COG02Respo COG03r COG04r COG05r COG06Hours COG07r COG08r COG09r COG10ToTop 
    COG11NewSo COG12r COG13Puzzl COG14Abstr COG15Prefe COG16r COG17r COG18Delib
  /SCALE('Need for Cognition Scale') ALL
  /MODEL=ALPHA.


/* Cronbach's alpha - Need for Closure - Reported in Table 5

RELIABILITY
  /VARIABLES=CLO01Clear CLO02Place CLO03Consi CLO04Order CLO05r CLO06Organ CLO07Rules CLO08r CLO09r 
    CLO10Minut CLO11State CLO12Inten CLO13WhyEv CLO14Annoy CLO15Confu CLO16KnoTh CLO17Confl CLO18BNews 
    CLO19Uncer CLO20r CLO21r CLO22r CLO23OwnVi CLO24r CLO25r CLO26Quest CLO27Disag CLO28r CLO29Expec 
    CLO30Knowi CLO31r CLO32r CLO33Capab CLO34Famil CLO35UnSit CLO36r CLO371Best CLO38r CLO39Quick 
    CLO40r CLO41r CLO42r
  /SCALE('Need for Closure Scale') ALL
  /MODEL=ALPHA.


/* Cronbach's alpha - Attributional Complexity - Reported in Table 5

RELIABILITY
  /VARIABLES=AC01r AC02r AC03Analyz AC04r AC05r AC06Comple AC07r AC08r AC09OwnThi AC10Attach AC11r 
    AC12Differ AC13Influe AC14r AC15r AC16Contac AC17r AC18FitTog AC19Belief AC20r AC21r AC22r 
    AC23Societ AC24SociMy AC25Family AC26FarBac AC27Chain AC28r
  /SCALE('Attributional Complexity Scale') ALL
  /MODEL=ALPHA.


/* Correlations among variables in full sample - Reported in Table 5
/* Confidence intervals for correlations were found using Cumming's ESCI package, available at http://www.latrobe.edu.au/psy/research/cognitive-and-developmental-psychology/esci

CORRELATIONS
  /VARIABLES=HREAllAvg IHAvg COGAvg CLOAllAvg ACAllAvg RPMTestSum GoughSum CFTAvg SDOAvg BJWAvg 
    RWAAvg
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.


/* Correlations among  - By subsample

SORT CASES  BY sample.
SPLIT FILE SEPARATE BY sample.

CORRELATIONS
  /VARIABLES=IHAvg HREAllAvg
  /PRINT=TWOTAIL NOSIG
  /MISSING=PAIRWISE.






RELIABILITY
  /VARIABLES=RPM01score RPM02score RPM07score RPM03score RPM04score RPM11score RPM05score 
    RPM06score RPM10score RPM08score RPM12score RPM09score
  /SCALE("Raven's Progressive Matrices") ALL
  /MODEL=ALPHA.
